package app.texas.com.devilfishhouse.View.Fragment.home.financial;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import com.universal_library.adapter.BaseAdapter;

import app.texas.com.devilfishhouse.Beans.home.FinancialBean;
import app.texas.com.devilfishhouse.R;

/**
 * Created by solin on 2018/7/20.
 * 金融产品adapter
 */

public class FinancialListAdapter extends BaseAdapter<FinancialBean, FinancialListAdapter.ViewHolder>

{

    public FinancialListAdapter(Context mContext) {
        super(mContext);
    }

    @Override
    public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        return new ViewHolder(mInflater.inflate(R.layout.item_financial, parent, false));
    }

    @Override
    public void onBindViewHolder(ViewHolder holder, int position) {

    }

    public class ViewHolder extends RecyclerView.ViewHolder {
        private ImageView iv_itemIcon;
        private TextView tv_itemTitle,tv_itemContext;

        public ViewHolder(View itemView) {
            super(itemView);
            iv_itemIcon=itemView.findViewById(R.id.iv_item_icon);
            tv_itemTitle=itemView.findViewById(R.id.tv_itemName);
            tv_itemContext=itemView.findViewById(R.id.tv_item_content);
        }
    }
}
